<h1>Listing popsicles</h1>

<table>
  <tr>
    <th>Date created</th>
    <th>Date last accessed</th>
    <th>Author</th>
    <th>Recipient</th>
    <th>Stream</th>
    <th></th>
    <th></th>
    <th></th>
  </tr>

<% @popsicles.each do |popsicle| %>
  <tr>
    <td><%= popsicle.date_created %></td>
    <td><%= popsicle.date_last_accessed %></td>
    <td><%= popsicle.author_id %></td>
    <td><%= popsicle.recipient_id %></td>
    <td><%= popsicle.stream_id %></td>
    <td><%= link_to 'Show', popsicle %></td>
    <td><%= link_to 'Edit', edit_popsicle_path(popsicle) %></td>
    <td><%= link_to 'Destroy', popsicle, :confirm => 'Are you sure?', :method => :delete %></td>
  </tr>
<% end %>
</table>

<br />

<%= link_to 'New Popsicle', new_popsicle_path %>
